<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <include file="Public:header" />
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
    
    <script type="text/javascript">
    var tab;
        $(function ()
        {
        	$("#layout1").ligerLayout({ leftWidth: 150});
            $("#tree1").ligerTree({
            	checkbox: false,
            	 attribute: ['nodename', 'url'],
                data: [
                    { text: '应用授权',url:'__URL__/app/groupId/{$groupId}' },
                    { text: '模块授权',url:'__URL__/module/groupId/{$groupId}'},
                    { text: '功能授权',url:'__URL__/action/groupId/{$groupId}'}
                ],
                onSelect: function (node)
                {
                    if (!node.data.url) return;
                    $("#dd").attr("src",node.data.url);
                   // tab.overrideSelectedTabItem({"title":node.data.text})
                  //  tab.getSelectedTabItemID.set({"title":node.data.text});

                }

                });


        	$("#navtab1").ligerTab(); 
        	tab = $("#navtab1").ligerGetTabManager();

        });
    </script>
</head>
<body style="padding:10px">
<div id="layout1">

            <div position="left" title="选择等级">
              <div style="margin:10px; float:left; border:1px solid #ccc; overflow:auto;  ">
			   <ul id="tree1"></ul>
		      </div> 
	          <div style="display:none"></div>
            </div>

            <div position="center" >
				<div id="navtab1" style="width: 600px;overflow:hidden; border:1px solid #A3C0E8; ">
					<div tabid="home" id="tt" title="应用授权" lselected="true"   >
						<iframe frameborder="0" id="dd" name="groups" src="__URL__/app/groupId/{$groupId}"></iframe>
					</div>
					
				</div>
            </div>  
 </div> 

	
</body>
</html>

